﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KF_Add.aspx.cs" Inherits="Web.KF_Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/Page.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

    <link href="css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery.js" type="text/javascript"></script>

    <script type='text/javascript' src="js/jquery.autocomplete.js"></script>

    <script type="text/javascript">
        function findValue(li) {
            if (li == null) return alert("No match!");
            if (!!li.extra)
                var sValue = li.extra[0];
        }
        function selectItem(li) {
            findValue(li);
        }
        function lookupLocal() {
            var oSuggest = $(".ajaxinput")[0].autocompleter;
            oSuggest.findValue();
            return false;
        }
        $(document).ready(function() {
            $("#txtarea").autocomplete("AutoCompleteData.aspx", {
                delay: 10,
                minChars: 2,
                matchSubset: 1,
                cacheLength: 1,
                onItemSelect: selectItem,
                onFindValue: findValue,
                autoFill: true,
                maxItemsToShow: 20
            });
        });    
    </script>

    <style type="text/css">
        .ItemCenter001
        {
            text-align: center;
            font-size: 12px;
            font-weight: bolder;
            border-right: 1px solid #767676;
            border-bottom: 1px solid #767676;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="border: 1px solid #9abddd;" border="0" cellpadding="0" cellspacing="0"
            width="98%">
            <tr>
                <td class="TitleBar" colspan="2" align="center">
                    机会添加
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    咨询时间：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="BeginDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});"
                        TabIndex="10" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemName" style="text-align: center; width: 200px;">
                    机会类型：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:DropDownList ID="ddlchoce" runat="server" Style="width: 250px;" AutoPostBack="true"
                        OnSelectedIndexChanged="ddlchoce_SelectedIndexChanged">
                    </asp:DropDownList>
                    <span style="color: #cd0000; font-size: large;">*</span>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    线索来源：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:DropDownList ID="ddlsrc" runat="server" Style="width: 250px;" AutoPostBack="true"
                        onselectedindexchanged="ddlsrc_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    公司名称：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtCorName" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    贵姓(客户 联系人)：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtName" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    手机：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txttel" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    电话：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtphone" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    传真：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtfax" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    邮箱：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtmail" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    公司地址：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtCorAdress" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    所在区域：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtarea" runat="server" Style="width: 245px;"></asp:TextBox>
                    (如：上海 输入：SH 或者 sh)
                </td>
            </tr>
            <tr>
                <td class="ItemCenter001">
                    备注：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <textarea runat="server" id="txtRemark" style="width: 250px; height: 130px;"></textarea>
                </td>
            </tr>
            <tr>
                <td class="ItemName" style="text-align: center; width: 200px;">
                    产品名称：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:DropDownList ID="ddlProductKind" runat="server" Style="width: 250px;">
                    </asp:DropDownList>
                    <span style="color: #cd0000; font-size: large;">*</span>
                </td>
            </tr>
            <tr style="display: none;">
                <td class="ItemCenter001">
                    产品类别：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:TextBox ID="txtprotype" runat="server" Style="width: 250px;"></asp:TextBox>
                </td>
            </tr>
            <tr style="display: none;">
                <td class="ItemCenter001">
                    线索类型：
                </td>
                <td class="ItemCellRight" style="padding-left: 3px;">
                    <asp:DropDownList ID="ddltype" runat="server" Style="width: 250px;">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="Pager" align="center">
                    <asp:Button ID="btn_edit" runat="server" OnClick="btn_edit_Click" Text="修改保存" />
                    <asp:Button ID="btnOK" runat="server" Text="添加保存" OnClick="btnOK_Click" />
                    <asp:Button ID="btn_back" runat="server" Text="返回列表" OnClick="btn_back_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
